﻿using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BDPAutodetect.Models
{
    /// <summary>
    /// 视图模型基础数据基类
    /// </summary>
    public partial class MBasic : MBase
    {
        /// <summary>
        /// 代码
        /// </summary>
        [ObservableProperty]
        protected string code;

        /// <summary>
        /// 构造函数
        /// </summary>
        public MBasic() : base()
        {
            this.Code = string.Empty;
        }

        public virtual MBasic CloneDeep()
        {
            return new MBasic()
            {
                ID = this.ID,
                Code = this.Code,
                Name = this.Name
            };
        }
    }
}
